package com.fakepath.animations;

import com.example.pathfake.Direction;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.AnimationSet;

public abstract class InOutAnimation extends AnimationSet {
	public Direction direction;

	public InOutAnimation(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public InOutAnimation(boolean shareInterpolator) {
		super(shareInterpolator);
	}

	public InOutAnimation(Direction paramDirection, long durationMillis,
			View[] paramArrayOfView) {
		super(true);
		setDuration(durationMillis);
		this.direction = paramDirection;
		switch (direction) {
		case IN:
			addInAnimation(paramArrayOfView);
			break;
		case OUT:
			addOutAnimation(paramArrayOfView);
		}
	}

	public abstract void addInAnimation(View[] paramArrayOfView);

	public abstract void addOutAnimation(View[] paramArrayOfView);
}
